package cn.bandeqing.productSpecification.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import cn.bandeqing.product.req.ProductSpecificationSaveOrUpdateReq;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.math.BigDecimal;
import java.sql.Timestamp;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 产品规格 实体类。
 *
 * @author fugui
 * @since 2024-01-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_product_specification", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
@AutoMapper(target = ProductSpecificationSaveOrUpdateReq.class, convertGenerate = false)
public class ProductSpecification extends BaseEntity {

    @Id(keyType = KeyType.Auto)
    private Long productSpecificationId;

    private String productSpecification;

    private Long productId;

    private String productName;

    private Double productPrice;

    private Boolean customerHide;

}
